<div class="pageLeft">
<?php if(!$this->session->userdata('account_name')){ ?>
    <div class="boxRegister">
    <p>ĐĂNG KÝ TÀI KHOẢN</p>
    <?php 
    	echo anchor('/accounts/login',' ','title="Đăng nhập" class="linksignIn"');
    	echo anchor('/accounts/register',' ','title="Đăng ký" class="linkReg"');
    ?>
    </div>
    <?php }else { ?>
    <div class="boxRegister">
        <p>THÔNG TIN TÀI KHOẢN</p>
			<span class="name_s">Xin Chào: <b><?php echo $this->session->userdata('account_name'); ?></b> <a href="<?php echo site_url('profile');?>">Tài khoản</a></span>
			<span class="name_s">Email: <b><?php echo $this->session->userdata('account_email'); ?></b><a href="<?php echo site_url('accounts/logout')?>">Thoát</a></span>                    
        </div>	
  	<?php }  ?>
<script type="text/javascript">
	$(document).ready(function()
	{ 
		var idcode = $('#idcode').val();
		var totalPage = $('#totalPage').val();
		if(idcode == 1)
		{
			$('.arw_prev').css("display","none");
			$('.allListMember').css("padding-left","25px");
		}
	});
	function nextPage()
	{
		var idcode = $('#idcode').val();     
		$('.boxListCode').html('<div style="text-align: center; margin: 20px;"><img src="http://www.chiakhoavang.vn/loading.gif" /></div>');
		$.ajax({
		url:'http://localhost/SFS/?mod=event&task=next&ajax=true&id='+idcode,
		type: 'GET',
		success:function(response){
		$('.boxListCode').html(response);
		}
}); 	
	}
</script>
	<?php $this->blocks->load('latest_news','','',array('news'=>'left'));?> 
	<?php $this->blocks->load('advert','','',array('l_adv' => 'adv')); ?>
</div>
